<!doctype html>
<html>
<head>
<style>
.anim { animation: anim 2s infinite linear }
@keyframes anim { }
</style>
</head>
<body>
<script>
var i = document.createElement('i');
i.setAttribute('class', 'anim');
getComputedStyle(i).display;
</script>
</body>
</html>
